package com.liyue.utillib;

import android.util.Log;

/**
 * @author liyue
 * @date 2021/6
 * 日志方法获取
 */
public class LogUtils {
    public static String sTAG = "LogUtil";
    public static boolean sIsRelease = false;

    public static void init(boolean isRelease) {
        sIsRelease = isRelease;
    }

    public static void init(String baseTag, boolean isRelease) {
        sTAG = baseTag;
        sIsRelease = isRelease;
    }

    public static void d(String content) {
        if (!sIsRelease) {
            Log.d("[" + sTAG + "]", content);
        }
    }
    public static void d(String TAG, String content) {
        if (!sIsRelease) {
            Log.d("[" + sTAG + "]" + TAG, content);
        }
    }
    public static void v(String content) {
        if (!sIsRelease) {
            Log.d("[" + sTAG + "]", content);
        }
    }

    public static void v(String TAG, String content) {
        if (!sIsRelease) {
            Log.d("[" + sTAG + "]" + TAG, content);
        }
    }

    public static void i(String content) {
        if (!sIsRelease) {
            Log.d("[" + sTAG + "]", content);
        }
    }

    public static void i(String TAG, String content) {
        if (!sIsRelease) {
            Log.d("[" + sTAG + "]" + TAG, content);
        }
    }

    public static void w(String content) {
        if (!sIsRelease) {
            Log.d("[" + sTAG + "]", content);
        }
    }
    public static void w(String TAG, String content) {
        if (!sIsRelease) {
            Log.d("[" + sTAG + "]" + TAG, content);
        }
    }

    public static void e(String content) {
        if (!sIsRelease) {
            Log.d("[" + sTAG + "]", content);
        }
    }
    public static void e(String TAG, String content) {
        if (!sIsRelease) {
            Log.d("[" + sTAG + "]" + TAG, content);
        }
    }
}
